import FetchHelper from "../helper/fetch-helper"
import { rootFilePath } from "../constant"

export default class CztHandle {
    static async cztEditDynamicApi() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/承灾体编辑.json`)
        return dynamicForms;
    }  
    static async list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/cztjcb/`+id)
        return resp;
       
    }
    static async cztLookDynamicApi() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/承灾体查看.json`)
        return dynamicForms;
    }
  
    static async list2(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/cztjcb/`+id)
        return resp;
    }
    static async cztAddDynamicApi(){
        const cztAddDynamicForms=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/承灾体新增.json`)
        return cztAddDynamicForms;
    }
    //详情
    static async cztXqDynamicApi(){
        const xqDatas=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/承灾体详情小类编辑.json`)
        return xqDatas;
    }
}
